Optimal. Leaf size=59 \[ -\frac{\left (a+b (c \sec (e+f x))^n\right )^{p+1} \text{Hypergeometric2F1}\left (1,p+1,p+2,\frac{b (c \sec (e+f x))^n}{a}+1\right )}{a f n (p+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0769761, antiderivative size = 59, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217, Rules used = {4139, 367, 12, 266, 65} \[ -\frac{\left (a+b (c \sec (e+f x))^n\right )^{p+1} \, _2F_1\left (1,p+1;p+2;\frac{b (c \sec (e+f x))^n}{a}+1\right )}{a f n (p+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4139
Rule 367
Rule 12
Rule 266
Rule 65
Rubi steps
\begin{align*} \int \left (a+b (c \sec (e+f x))^n\right )^p \tan (e+f x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b (c x)^n\right )^p}{x} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac{\operatorname{Subst}\left (\int \frac{c \left (a+b x^n\right )^p}{x} \, dx,x,c \sec (e+f x)\right )}{c f}\\ &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b x^n\right )^p}{x} \, dx,x,c \sec (e+f x)\right )}{f}\\ &=\frac{\operatorname{Subst}\left (\int \frac{(a+b x)^p}{x} \, dx,x,(c \sec (e+f x))^n\right )}{f n}\\ &=-\frac{\, _2F_1\left (1,1+p;2+p;1+\frac{b (c \sec (e+f x))^n}{a}\right ) \left (a+b (c \sec (e+f x))^n\right )^{1+p}}{a f n (1+p)}\\ \end{align*}
Mathematica [A] time = 0.0895108, size = 59, normalized size = 1. \[ -\frac{\left (a+b (c \sec (e+f x))^n\right )^{p+1} \text{Hypergeometric2F1}\left (1,p+1,p+2,\frac{b (c \sec (e+f x))^n}{a}+1\right )}{a f n (p+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.553, size = 0, normalized size = 0. \begin{align*} \int \left ( a+b \left ( c\sec \left ( fx+e \right ) \right ) ^{n} \right ) ^{p}\tan \left ( fx+e \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (\left (c \sec \left (f x + e\right )\right )^{n} b + a\right )}^{p} \tan \left (f x + e\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (\left (c \sec \left (f x + e\right )\right )^{n} b + a\right )}^{p} \tan \left (f x + e\right ), x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \left (c \sec{\left (e + f x \right )}\right )^{n}\right )^{p} \tan{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (\left (c \sec \left (f x + e\right )\right )^{n} b + a\right )}^{p} \tan \left (f x + e\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]